public class Test {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.addLast(1);
        list.addLast(3);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.addLast(7);
        list.display();
        System.out.println("=========");
        list.remove(5);
        list.display();
        System.out.println("=========");
        list.removeAllKey(5);
        list.display();
    }
}
